package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/16 15:09
 */

@Data
@TableName(value = "tb_order")
public class TbOrder implements Serializable {
    static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer orderId;
    private Long orderNo;
    private String orderName;
    private Double orderAmount;
    private Integer orderStatus;
    private Integer userId;

    @TableField(exist = false)
    private String nickName;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
